package com.smallkk.zkListen;

import org.I0Itec.zkclient.IZkChildListener;

import java.util.List;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author song
 * @date 2017/12/24 5:06
 */
public class ZkListener implements IZkChildListener {
    /**
     * 监听子节点的变化
     *
     * @param parentPath
     * @param Children
     * @throws Exception
     */
    public void handleChildChange(String parentPath, List<String> Children) throws Exception {
        System.out.println(parentPath);
        System.out.println(Children.toString());

    }
}
